package com.alm.handle.service;

import com.alm.entity.PasingByteModel;
import com.alm.handle.core.domain.entity.SysDevInfo;
import com.alm.handle.core.domain.entity.rq.LableAddAndUpdateRq;
import com.alm.handle.core.domain.entity.rq.LableInfoRq;
import com.alm.handle.core.domain.entity.rq.RefreshImgRq;
import com.alm.handle.core.domain.entity.rs.LableInfoDataRs;

import java.util.List;

public interface AlmLableService {
    /**
     * 查询 标签
     * @param lableInfoRq
     * @return
     */
    List<SysDevInfo> queryByLable(LableInfoRq lableInfoRq);



    int insertLable(LableAddAndUpdateRq lableAddAndUpdateRq);

    /**
     * 查询标签信息
     * @param id
     * @return
     */
    SysDevInfo  queryByLabelByid(Integer id);

    /**
     * 修改标签信息
     * @param lableAddAndUpdateRq
     * @return
     */
    int updateLable(LableAddAndUpdateRq lableAddAndUpdateRq);


    int delLable(Integer id);


    LableInfoDataRs queryImgInfoById(Integer id);


    int  setLableImg(String filePath,String devid);


    Boolean refreshImg(RefreshImgRq refreshImgRq) throws Exception;

    /**
     * 标签状态处理
     * @param header
     */
    void deal_lable_status(PasingByteModel.Header header);

    /**
     * 标签业务处理
     * @param
     * @param header
     */
    void deal_lable_business(PasingByteModel.Header header);
}
